let countArray = [
	{
		id: 1,
		value: "场地专票（非1年）", 
		months: true,
		area: true,
		localRate: true,
		rentVat: false,
		subletVat: false,
	},
	{
		id: 2,
		value: "场地普票（非1年）", 
		months: true,
		area: true,
		localRate: true,
		rentVat: false,
		subletVat: false,
	},
	{
		id: 3,
		value: "专票非住房（非1年）", 
		months: true,
		area: true,
		localRate: true,
		rentVat: true,
		subletVat: true,
	},
	{
		id: 4,
		value: "专票住房 (非1年）", 
		months: true,
		area: false,
		localRate: false,
		rentVat: true,
		subletVat: true,
	},
	{
		id: 5,
		value: "普票非住房（非1年）", 
		months: true,
		area: true,
		localRate: true,
		rentVat: true,
		subletVat: true,
	},
	{
		id: 6,
		value: "普票住房(非1年）", 
		months: true,
		area: false,
		localRate: false,
		rentVat: true,
		subletVat: true,
	},
	{
		id: 7,
		value: "场地专票1年", 
		months: false,
		area: true,
		localRate: true,
		rentVat: false,
		subletVat: false,
	},
	{
		id: 8,
		value: "场地普票1年", 
		months: false,
		area: true,
		localRate: true,
		rentVat: false,
		subletVat: false,
	},
	{
		id: 9,
		value: "专票非住房1年", 
		months: false,
		area: true,
		localRate: true,
		rentVat: true,
		subletVat: true,
	},
	{
		id: 10,
		value: "专票住房1年", 
		months: false,
		area: false,
		localRate: false,
		rentVat: true,
		subletVat: true,
	},
	{
		id: 11,
		value: "普票非住房1年", 
		months: false,
		area: true,
		localRate: true,
		rentVat: true,
		subletVat: true,
	},
	{
		id: 12,
		value: "普票住房1年", 
		months: false,
		area: false,
		localRate: false,
		rentVat: true,
		subletVat: true,
	},
];

let localRateArray = [
	{
		id: "4.8",
		value: 4.8,
	},
	{
		id: "3.6",
		value: 3.6,
	},
	{
		id: "2.4",
		value: 2.4,
	},
	{
		id: "1.2",
		value: 1.2,
	},
	{
		id: "1",
		value: 1,
	}
];

let countObject = {
	
	1: {
		_price: 0,
		_months: 12,
		_area: 0,
		_localRate: 0.0,
		_rentVat: 0,
		_subletVat: 0,
		init: function(price, months, area, localRate, rentVat, subletVat) {
			this._price = price;
			this._months = months;
			this._area = area;
			this._localRate = localRate;
			this._rentVat = rentVat;
			this._subletVat = subletVat;
		},
		clear: function() {
			this._price = 0;
			this._months = 12;
			this._area = 0;
			this._localRate = 0.0;
			this._rentVat = 0;
			this._subletVat = 0;
		},
		amountWithoutFax: function() {
			return this._price / 1.05;
		},
		vat: function() {
			return this._price / 1.05 * 0.05;
		},
		cbFax: function() {
			return this.vat() * 0.05 * 0.5;
		},
		edAFax: function() {
			if (this.amountWithoutFax() / this._months <= 100000) {
				return 0;
			} else {
				return this.vat() * 0.03 * 0.5;
			}
		},
		ledAFax: function() {
			if (this.amountWithoutFax() / this._months <= 100000) {
				return 0;
			} else {
				return this.vat() * 0.02 * 0.5;
			}
		},
		bFax: function() {
			return 0;
		},
		lAFax: function() {
			if ((this._price - this.vat()) / this._months <= 30000) {
				return 0;
			} else {
				return this._area * this._localRate * this._months / 12 * 0.5;
			}
		},
		stFax: function() {
			return this._price * 0.001 * 0.5;
		},
		deduAmount: function() {
			if (this._subletVat < 800 * this._months) {
				return this._subletVat;
			} else {
				return 800 * this._months;
			}
		},
		basTax: function() {
			let count = this._price - this.vat() 
					- this.cbFax() - this.edAFax() 
					- this.ledAFax() - this.bFax() 
					- this.lAFax() - this.stFax() 
					- this._rentVat - this.deduAmount();
			if (count <= 4000 && (count-800) > 0) {
				return count-800;
			} else if (count > 4000 && count * 0.8 > 0) {
				return count* 0.8;
			} else if (count <= 4000 && (count-800) <= 0) {
				return 0;
			} else if (count > 4000 && count*0.8 <= 0) {
				return 0;
			} else {
				return 0;
			}
		},
		iiTex: function() {
			return this.basTax() * 0.2;
		},
		allTaxAmount: function() {
			return this.vat()+this.cbFax()
				+this.edAFax()+this.ledAFax()
				+this.bFax()+this.lAFax()
				+this.stFax()+this.iiTex();
		},
		allRat: function() {
			return this.allTaxAmount() / this._price;
		},
		aledAmount: function() {
			return this._price - this.vat() - this.basTax();
		},
		allAmountNoSt: function() {
			return this.vat()+this.cbFax()
				+this.edAFax()+this.ledAFax()
				+this.bFax()+this.lAFax()+this.iiTex();
		}
	},
	
	2: {
		_price: 0,
		_months: 12,
		_area: 0,
		_localRate: 0.0,
		_rentVat: 0,
		_subletVat: 0,
		init: function(price, months, area, localRate, rentVat, subletVat) {
			this._price = price;
			this._months = months;
			this._area = area;
			this._localRate = localRate;
			this._rentVat = rentVat;
			this._subletVat = subletVat;
		},
		clear: function() {
			this._price = 0;
			this._months = 12;
			this._area = 0;
			this._localRate = 0.0;
			this._rentVat = 0;
			this._subletVat = 0;
		},
		amountWithoutFax: function() {
			return this._price / 1.05;
		},
		vat: function() {
			if (this.amountWithoutFax() / this._months <= 150000) {
				return 0;
			} else {
				return this._price / 1.05 * 0.05;
			}
		},
		cbFax: function() {
			return this.vat() * 0.05 * 0.5;
		},
		edAFax: function() {
			if (this.amountWithoutFax() / this._months <= 100000) {
				return 0;
			} else {
				return this.vat() * 0.03 * 0.5;
			}
		},
		ledAFax: function() {
			if (this.amountWithoutFax() / this._months <= 100000) {
				return 0;
			} else {
				return this.vat() * 0.02 * 0.5;
			}
		},
		bFax: function() {
			return 0;
		},
		lAFax: function() {
			if ((this._price - this.vat()) / this._months <= 30000) {
				return 0;
			} else {
				return this._area * this._localRate * this._months / 12 * 0.5;
			}
		},
		stFax: function() {
			return this._price * 0.001 * 0.5;
		},
		deduAmount: function() {
			if (this._subletVat < 800 * this._months) {
				return this._subletVat;
			} else {
				return 800 * this._months;
			}
		},
		basTax: function() {
			let count = this._price - this.vat() 
					- this.cbFax() - this.edAFax() 
					- this.ledAFax() - this.bFax() 
					- this.lAFax() - this.stFax() 
					- this._rentVat - this.deduAmount();
					
			if (count <= 4000 && (count-800) > 0) {
				return count-800;
			} else if (count > 4000 && count * 0.8 > 0) {
				return count* 0.8;
			} else if (count <= 4000 && (count-800) <= 0) {
				return 0;
			} else if (count > 4000 && count*0.8 <= 0) {
				return 0;
			} else {
				return 0;
			}
		},
		iiTex: function() {
			return this.basTax() * 0.2;
		},
		allTaxAmount: function() {
			return this.vat()+this.cbFax()
				+this.edAFax()+this.ledAFax()
				+this.bFax()+this.lAFax()
				+this.stFax()+this.iiTex();
		},
		allRat: function() {
			return this.allTaxAmount() / this._price;
		},
		aledAmount: function() {
			return this._price - this.vat() - this.basTax();
		},
		allAmountNoSt: function() {
			return this.vat()+this.cbFax()
				+this.edAFax()+this.ledAFax()
				+this.bFax()+this.lAFax()+this.iiTex();
		}
	},
	
	3: {
		_price: 0,
		_months: 12,
		_area: 0,
		_localRate: 0.0,
		_rentVat: 0,
		_subletVat: 0,
		init: function(price, months, area, localRate, rentVat, subletVat) {
			this._price = price;
			this._months = months;
			this._area = area;
			this._localRate = localRate;
			this._rentVat = rentVat;
			this._subletVat = subletVat;
		},
		clear: function() {
			this._price = 0;
			this._months = 12;
			this._area = 0;
			this._localRate = 0.0;
			this._rentVat = 0;
			this._subletVat = 0;
		},
		amountWithoutFax: function() {
			return this._price / 1.05;
		},
		vat: function() {
			return this._price / 1.05 * 0.05;
		},
		cbFax: function() {
			return this.vat() * 0.05 * 0.5;
		},
		edAFax: function() {
			if (this.amountWithoutFax() / this._months <= 100000) {
				return 0;
			} else {
				return this.vat() * 0.03 * 0.5;
			}
		},
		ledAFax: function() {
			if (this.amountWithoutFax() / this._months <= 100000) {
				return 0;
			} else {
				return this.vat() * 0.02 * 0.5;
			}
		},
		bFax: function() {
			
			if ((this._price - this.vat()) / this._months <= 30000) {
				return 0;
			} else {
				return (this._price - this.vat()) * 0.12 * 0.5;
			}
			
			return 0;
		},
		lAFax: function() {
			if ((this._price - this.vat()) / this._months <= 30000) {
				return 0;
			} else {
				return this._area * this._localRate * this._months / 12 * 0.5;
			}
		},
		stFax: function() {
			return this._price * 0.001 * 0.5;
		},
		deduAmount: function() {
			if (this._subletVat < 800 * this._months) {
				return this._subletVat;
			} else {
				return 800 * this._months;
			}
		},
		basTax: function() {
			let count = this._price - this.vat() 
					- this.cbFax() - this.edAFax() 
					- this.ledAFax() - this.bFax() 
					- this.lAFax() - this.stFax() 
					- this._rentVat - this.deduAmount();
					
			if (count <= 4000 && (count-800) > 0) {
				return count-800;
			} else if (count > 4000 && count * 0.8 > 0) {
				return count* 0.8;
			} else if (count <= 4000 && (count-800) <= 0) {
				return 0;
			} else if (count > 4000 && count*0.8 <= 0) {
				return 0;
			} else {
				return 0;
			}
		},
		iiTex: function() {
			return this.basTax() * 0.2;
		},
		allTaxAmount: function() {
			return this.vat()+this.cbFax()
				+this.edAFax()+this.ledAFax()
				+this.bFax()+this.lAFax()
				+this.stFax()+this.iiTex();
		},
		allRat: function() {
			return this.allTaxAmount() / this._price;
		},
		aledAmount: function() {
			return this._price - this.vat() - this.basTax();
		},
		allAmountNoSt: function() {
			return this.vat()+this.cbFax()
				+this.edAFax()+this.ledAFax()
				+this.bFax()+this.lAFax()+this.iiTex();
		}
	},
	
	4: {
		_price: 0,
		_months: 12,
		_area: 100,
		_localRate: 3.6,
		_rentVat: 0,
		_subletVat: 0,
		init: function(price, months, area, localRate, rentVat, subletVat) {
			this._price = price;
			this._months = months;
			this._area = area;
			this._localRate = localRate;
			this._rentVat = rentVat;
			this._subletVat = subletVat;
		},
		clear: function() {
			this._price = 0;
			this._months = 12;
			this._area = 0;
			this._localRate = 0.0;
			this._rentVat = 0;
			this._subletVat = 0;
		},
		amountWithoutFax: function() {
			return this._price / 1.05;
		},
		vat: function() {
			return this._price / 1.05 * 0.015;
		},
		cbFax: function() {
			return this.vat() * 0.05 * 0.5;
		},
		edAFax: function() {
			if (this.amountWithoutFax() / this._months <= 100000) {
				return 0;
			} else {
				return this.vat() * 0.03 * 0.5;
			}
		},
		ledAFax: function() {
			if (this.amountWithoutFax() / this._months <= 100000) {
				return 0;
			} else {
				return this.vat() * 0.02 * 0.5;
			}
		},
		bFax: function() {
			if ((this._price - this.vat()) / this._months <= 30000) {
				return 0;
			} else {
				return (this._price - this.vat()) * 0.04 * 0.5;
			}
		},
		lAFax: function() {
			return 0;
		},
		stFax: function() {
			return 0;
		},
		deduAmount: function() {
			if (this._subletVat < 800 * this._months) {
				return this._subletVat;
			} else {
				return 800 * this._months;
			}
		},
		basTax: function() {
			let count = this._price - this.vat() 
					- this.cbFax() - this.edAFax() 
					- this.ledAFax() - this.bFax() 
					- this.lAFax() - this.stFax() 
					- this._rentVat - this.deduAmount();
					
			if (count <= 4000 && (count-800) > 0) {
				return count-800;
			} else if (count > 4000 && count * 0.8 > 0) {
				return count* 0.8;
			} else if (count <= 4000 && (count-800) <= 0) {
				return 0;
			} else if (count > 4000 && count*0.8 <= 0) {
				return 0;
			} else {
				return 0;
			}
		},
		iiTex: function() {
			return this.basTax() * 0.1;
		},
		allTaxAmount: function() {
			return this.vat()+this.cbFax()
				+this.edAFax()+this.ledAFax()
				+this.bFax()+this.lAFax()
				+this.stFax()+this.iiTex();
		},
		allRat: function() {
			return this.allTaxAmount() / this._price;
		},
		aledAmount: function() {
			return this._price - this.vat() - this.basTax();
		},
		allAmountNoSt: function() {
			return this.vat()+this.cbFax()
				+this.edAFax()+this.ledAFax()
				+this.bFax()+this.lAFax()+this.iiTex();
		}
	},

	5: {
		_price: 0,
		_months: 12,
		_area: 0,
		_localRate: 0.0,
		_rentVat: 0,
		_subletVat: 0,
		init: function(price, months, area, localRate, rentVat, subletVat) {
			this._price = price;
			this._months = months;
			this._area = area;
			this._localRate = localRate;
			this._rentVat = rentVat;
			this._subletVat = subletVat;
		},
		clear: function() {
			this._price = 0;
			this._months = 12;
			this._area = 0;
			this._localRate = 0.0;
			this._rentVat = 0;
			this._subletVat = 0;
		},
		amountWithoutFax: function() {
			return this._price / 1.05;
		},
		vat: function() {
			
			if (this.amountWithoutFax() / this._months <= 150000) {
				return 0;
			} else {
				return this._price / 1.05 * 0.05;
			}
		},
		cbFax: function() {
			return this.vat() * 0.05 * 0.5;
		},
		edAFax: function() {
			if (this.amountWithoutFax() / this._months <= 100000) {
				return 0;
			} else {
				return this.vat() * 0.03 * 0.5;
			}
		},
		ledAFax: function() {
			if (this.amountWithoutFax() / this._months <= 100000) {
				return 0;
			} else {
				return this.vat() * 0.02 * 0.5;
			}
		},
		bFax: function() {
			
			if ((this._price - this.vat()) / this._month <= 30000) {
				return 0;
			} else {
				return (this._price - this.vat()) * 0.12 * 0.5;
			}
		},
		lAFax: function() {
			if ((this._price - this.vat()) / this._months <= 30000) {
				return 0;
			} else {
				return this._area * this._localRate * this._months / 12 * 0.5;
			}
		},
		stFax: function() {
			return this._price * 0.001 * 0.5;
		},
		deduAmount: function() {
			if (this._subletVat < 800 * this._months) {
				return this._subletVat;
			} else {
				return 800 * this._months;
			}
		},
		basTax: function() {
			let count = this._price - this.vat() 
					- this.cbFax() - this.edAFax() 
					- this.ledAFax() - this.bFax() 
					- this.lAFax() - this.stFax() 
					- this._rentVat - this.deduAmount();
					
			if (count <= 4000 && (count-800) > 0) {
				return count-800;
			} else if (count > 4000 && count * 0.8 > 0) {
				return count* 0.8;
			} else if (count <= 4000 && (count-800) <= 0) {
				return 0;
			} else if (count > 4000 && count*0.8 <= 0) {
				return 0;
			} else {
				return 0;
			}
		},
		iiTex: function() {
			return this.basTax() * 0.2;
		},
		allTaxAmount: function() {
			return this.vat()+this.cbFax()
				+this.edAFax()+this.ledAFax()
				+this.bFax()+this.lAFax()
				+this.stFax()+this.iiTex();
		},
		allRat: function() {
			return this.allTaxAmount() / this._price;
		},
		aledAmount: function() {
			return this._price - this.vat() - this.basTax();
		},
		allAmountNoSt: function() {
			return this.vat()+this.cbFax()
				+this.edAFax()+this.ledAFax()
				+this.bFax()+this.lAFax()+this.iiTex();
		}
	},
	
	6: {
		_price: 0,
		_months: 12,
		_area: 100,
		_localRate: 3.6,
		_rentVat: 0,
		_subletVat: 0,
		init: function(price, months, area, localRate, rentVat, subletVat) {
			this._price = price;
			this._months = months;
			this._area = area;
			this._localRate = localRate;
			this._rentVat = rentVat;
			this._subletVat = subletVat;
		},
		clear: function() {
			this._price = 0;
			this._months = 12;
			this._area = 0;
			this._localRate = 0.0;
			this._rentVat = 0;
			this._subletVat = 0;
		},
		amountWithoutFax: function() {
			return this._price / 1.05;
		},
		vat: function() {
			if (this.amountWithoutFax() / this._months <= 150000) {
				return 0;
			} else {
				return this._price / 1.05 * 0.015;
			}
		},
		cbFax: function() {
			return this.vat() * 0.05 * 0.5;
		},
		edAFax: function() {
			if (this.amountWithoutFax() / this._months <= 100000) {
				return 0;
			} else {
				return this.vat() * 0.03 * 0.5;
			}
		},
		ledAFax: function() {
			if (this.amountWithoutFax() / this._months <= 100000) {
				return 0;
			} else {
				return this.vat() * 0.02 * 0.5;
			}
		},
		bFax: function() {
			if ((this._price - this.vat()) / this._months < 30000) {
				return 0;
			} else {
				return (this._price - this.vat()) * 0.04 * 0.5;
			}
		},
		lAFax: function() {
			return 0;
		},
		stFax: function() {
			return 0;
		},
		deduAmount: function() {
			if (this._subletVat < 800 * this._months) {
				return this._subletVat;
			} else {
				return 800 * this._months;
			}
		},
		basTax: function() {
			let count = this._price - this.vat() 
					- this.cbFax() - this.edAFax() 
					- this.ledAFax() - this.bFax() 
					- this.lAFax() - this.stFax() 
					- this._rentVat - this.deduAmount();
					
			if (count <= 4000 && (count-800) > 0) {
				return count-800;
			} else if (count > 4000 && count * 0.8 > 0) {
				return count* 0.8;
			} else if (count <= 4000 && (count-800) <= 0) {
				return 0;
			} else if (count > 4000 && count*0.8 <= 0) {
				return 0;
			} else {
				return 0;
			}
		},
		iiTex: function() {
			return this.basTax() * 0.1;
		},
		allTaxAmount: function() {
			return this.vat()+this.cbFax()
				+this.edAFax()+this.ledAFax()
				+this.bFax()+this.lAFax()
				+this.stFax()+this.iiTex();
		},
		allRat: function() {
			return this.allTaxAmount() / this._price;
		},
		aledAmount: function() {
			return this._price - this.vat() - this.basTax();
		},
		allAmountNoSt: function() {
			return this.vat()+this.cbFax()
				+this.edAFax()+this.ledAFax()
				+this.bFax()+this.lAFax()+this.iiTex();
		}
	},
	
	7: {
		_price: 0,
		_months: 12,
		_area: 0,
		_localRate: 0.0,
		_rentVat: 0,
		_subletVat: 0,
		init: function(price, months, area, localRate, rentVat, subletVat) {
			this._price = price;
			this._months = months;
			this._area = area;
			this._localRate = localRate;
			this._rentVat = rentVat;
			this._subletVat = subletVat;
		},
		clear: function() {
			this._price = 0;
			this._months = 12;
			this._area = 0;
			this._localRate = 0.0;
			this._rentVat = 0;
			this._subletVat = 0;
		},
		amountWithoutFax: function() {
			return this._price / 1.05;
		},
		vat: function() {
			return this._price / 1.05 * 0.05;
		},
		cbFax: function() {
			return this.vat() * 0.05 * 0.5;
		},
		edAFax: function() {
			if (this.amountWithoutFax() <= 1200000) {
				return 0;
			} else {
				return this.vat() * 0.03 * 0.5;
			}
		},
		ledAFax: function() {
			if (this.amountWithoutFax() <= 1200000) {
				return 0;
			} else {
				return this.vat() * 0.02 * 0.5;
			}
		},
		bFax: function() {
			return 0;
		},
		lAFax: function() {
			if ((this._price - this.vat()) <= 360000) {
				return 0;
			} else {
				return this._area * this._localRate * 0.5;
			}
		},
		stFax: function() {
			return this._price * 0.001 * 0.5;
		},
		deduAmount: function() {
			return 0;
		},
		basTax: function() {
			let count = this._price - this.vat() 
					- this.cbFax() - this.edAFax() 
					- this.ledAFax() - this.bFax() 
					- this.lAFax() - this.stFax() 
					- this._rentVat - this.deduAmount();
					
			if (count <= 4000 && (count-800) > 0) {
				return count-800;
			} else if (count > 4000 && count * 0.8 > 0) {
				return count* 0.8;
			} else if (count <= 4000 && (count-800) <= 0) {
				return 0;
			} else if (count > 4000 && count*0.8 <= 0) {
				return 0;
			} else {
				return 0;
			}
		},
		iiTex: function() {
			return this.basTax() * 0.2;
		},
		allTaxAmount: function() {
			return this.vat()+this.cbFax()
				+this.edAFax()+this.ledAFax()
				+this.bFax()+this.lAFax()
				+this.stFax()+this.iiTex();
		},
		allRat: function() {
			return this.allTaxAmount() / this._price;
		},
		aledAmount: function() {
			return this._price - this.vat() - this.basTax();
		},
		allAmountNoSt: function() {
			return this.vat()+this.cbFax()
				+this.edAFax()+this.ledAFax()
				+this.bFax()+this.lAFax()+this.iiTex();
		}
	},
	
	8: {
		_price: 0,
		_months: 12,
		_area: 0,
		_localRate: 0.0,
		_rentVat: 0,
		_subletVat: 0,
		init: function(price, months, area, localRate, rentVat, subletVat) {
			this._price = price;
			this._months = months;
			this._area = area;
			this._localRate = localRate;
			this._rentVat = rentVat;
			this._subletVat = subletVat;
		},
		clear: function() {
			this._price = 0;
			this._months = 12;
			this._area = 0;
			this._localRate = 0.0;
			this._rentVat = 0;
			this._subletVat = 0;
		},
		amountWithoutFax: function() {
			return this._price / 1.05;
		},
		vat: function() {
			if (this.amountWithoutFax() <= 1800000) {
				return 0;
			} else {
				return this._price / 1.05 * 0.05;
			}
		},
		cbFax: function() {
			return this.vat() * 0.05 * 0.5;
		},
		edAFax: function() {
			if (this.amountWithoutFax() <= 1200000) {
				return 0;
			} else {
				return this.vat() * 0.03 * 0.5;
			}
		},
		ledAFax: function() {
			if (this.amountWithoutFax() <= 1200000) {
				return 0;
			} else {
				return this.vat() * 0.02 * 0.5;
			}
		},
		bFax: function() {
			return 0;
		},
		lAFax: function() {
			if ((this._price - this.vat()) <= 360000) {
				return 0;
			} else {
				return this._area * this._localRate * 0.5;
			}
		},
		stFax: function() {
			return this._price * 0.001 * 0.5;
		},
		deduAmount: function() {
			return 0;
		},
		basTax: function() {
			let count = this._price - this.vat() 
					- this.cbFax() - this.edAFax() 
					- this.ledAFax() - this.bFax() 
					- this.lAFax() - this.stFax() 
					- this._rentVat - this.deduAmount();
					
			if (count <= 4000 && (count-800) > 0) {
				return count-800;
			} else if (count > 4000 && count * 0.8 > 0) {
				return count* 0.8;
			} else if (count <= 4000 && (count-800) <= 0) {
				return 0;
			} else if (count > 4000 && count*0.8 <= 0) {
				return 0;
			} else {
				return 0;
			}
		},
		iiTex: function() {
			return this.basTax() * 0.2;
		},
		allTaxAmount: function() {
			return this.vat()+this.cbFax()
				+this.edAFax()+this.ledAFax()
				+this.bFax()+this.lAFax()
				+this.stFax()+this.iiTex();
		},
		allRat: function() {
			return this.allTaxAmount() / this._price;
		},
		aledAmount: function() {
			return this._price - this.vat() - this.basTax();
		},
		allAmountNoSt: function() {
			return this.vat()+this.cbFax()
				+this.edAFax()+this.ledAFax()
				+this.bFax()+this.lAFax()+this.iiTex();
		}
	},

	9: {
		_price: 0,
		_months: 12,
		_area: 0,
		_localRate: 0.0,
		_rentVat: 0,
		_subletVat: 0,
		init: function(price, months, area, localRate, rentVat, subletVat) {
			this._price = price;
			this._months = months;
			this._area = area;
			this._localRate = localRate;
			this._rentVat = rentVat;
			this._subletVat = subletVat;
		},
		clear: function() {
			this._price = 0;
			this._months = 12;
			this._area = 0;
			this._localRate = 0.0;
			this._rentVat = 0;
			this._subletVat = 0;
		},
		amountWithoutFax: function() {
			return this._price / 1.05;
		},
		vat: function() {
			return this._price / 1.05 * 0.05;
		},
		cbFax: function() {
			return this.vat() * 0.05 * 0.5;
		},
		edAFax: function() {
			if (this.amountWithoutFax() <= 1200000) {
				return 0;
			} else {
				return this.vat() * 0.03 * 0.5;
			}
		},
		ledAFax: function() {
			if (this.amountWithoutFax() <= 1200000) {
				return 0;
			} else {
				return this.vat() * 0.02 * 0.5;
			}
		},
		bFax: function() {
			if ((this._price - this.vat()) <= 360000) {
				return 0;
			} else {
				return (this._price - this.vat()) * 0.12 * 0.5;
			}
		},
		lAFax: function() {
			if ((this._price - this.vat()) <= 360000) {
				return 0;
			} else {
				return this._area * this._localRate * 0.5;
			}
		},
		stFax: function() {
			return this._price * 0.001 * 0.5;
		},
		deduAmount: function() {
			if (this._subletVat < 9600) {
				return this._subletVat;
			} else {
				return 9600;
			}
		},
		basTax: function() {
			let count = this._price - this.vat() 
					- this.cbFax() - this.edAFax() 
					- this.ledAFax() - this.bFax() 
					- this.lAFax() - this.stFax() 
					- this._rentVat - this.deduAmount();
					
			if (count <= 4000 && (count-800) > 0) {
				return count-800;
			} else if (count > 4000 && count * 0.8 > 0) {
				return count* 0.8;
			} else if (count <= 4000 && (count-800) <= 0) {
				return 0;
			} else if (count > 4000 && count*0.8 <= 0) {
				return 0;
			} else {
				return 0;
			}
		},
		iiTex: function() {
			return this.basTax() * 0.2;
		},
		allTaxAmount: function() {
			return this.vat()+this.cbFax()
				+this.edAFax()+this.ledAFax()
				+this.bFax()+this.lAFax()
				+this.stFax()+this.iiTex();
		},
		allRat: function() {
			return this.allTaxAmount() / this._price;
		},
		aledAmount: function() {
			return this._price - this.vat() - this.basTax();
		},
		allAmountNoSt: function() {
			return this.vat()+this.cbFax()
				+this.edAFax()+this.ledAFax()
				+this.bFax()+this.lAFax()+this.iiTex();
		}
	},

	10: {
		_price: 0,
		_months: 12,
		_area: 0,
		_localRate: 0.0,
		_rentVat: 0,
		_subletVat: 0,
		init: function(price, months, area, localRate, rentVat, subletVat) {
			this._price = price;
			this._months = months;
			this._area = area;
			this._localRate = localRate;
			this._rentVat = rentVat;
			this._subletVat = subletVat;
		},
		clear: function() {
			this._price = 0;
			this._months = 12;
			this._area = 0;
			this._localRate = 0.0;
			this._rentVat = 0;
			this._subletVat = 0;
		},
		amountWithoutFax: function() {
			return this._price / 1.05;
		},
		vat: function() {
			return this._price / 1.05 * 0.015;
		},
		cbFax: function() {
			return this.vat() * 0.05 * 0.5;
		},
		edAFax: function() {
			if (this.amountWithoutFax() <= 1200000) {
				return 0;
			} else {
				return this.vat() * 0.03 * 0.5;
			}
		},
		ledAFax: function() {
			if (this.amountWithoutFax() <= 1200000) {
				return 0;
			} else {
				return this.vat() * 0.02 * 0.5;
			}
		},
		bFax: function() {
			if ((this._price - this.vat()) <= 360000) {
				return 0;
			} else {
				return (this._price - this.vat()) * 0.04 * 0.5;
			}
		},
		lAFax: function() {
			return 0;
		},
		stFax: function() {
			return 0;
		},
		deduAmount: function() {
			if (this._subletVat < 9600) {
				return this._subletVat;
			} else {
				return 9600;
			}
		},
		basTax: function() {
			let count = this._price - this.vat() 
					- this.cbFax() - this.edAFax() 
					- this.ledAFax() - this.bFax() 
					- this.lAFax() - this.stFax() 
					- this._rentVat - this.deduAmount();
					
			if (count <= 4000 && (count-800) > 0) {
				return count-800;
			} else if (count > 4000 && count * 0.8 > 0) {
				return count* 0.8;
			} else if (count <= 4000 && (count-800) <= 0) {
				return 0;
			} else if (count > 4000 && count*0.8 <= 0) {
				return 0;
			} else {
				return 0;
			}
		},
		iiTex: function() {
			return this.basTax() * 0.1;
		},
		allTaxAmount: function() {
			return this.vat()+this.cbFax()
				+this.edAFax()+this.ledAFax()
				+this.bFax()+this.lAFax()
				+this.stFax()+this.iiTex();
		},
		allRat: function() {
			return this.allTaxAmount() / this._price;
		},
		aledAmount: function() {
			return this._price - this.vat() - this.basTax();
		},
		allAmountNoSt: function() {
			return this.vat()+this.cbFax()
				+this.edAFax()+this.ledAFax()
				+this.bFax()+this.lAFax()+this.iiTex();
		}
	},

	11: {
		_price: 0,
		_months: 12,
		_area: 0,
		_localRate: 0.0,
		_rentVat: 0,
		_subletVat: 0,
		init: function(price, months, area, localRate, rentVat, subletVat) {
			this._price = price;
			this._months = months;
			this._area = area;
			this._localRate = localRate;
			this._rentVat = rentVat;
			this._subletVat = subletVat;
		},
		clear: function() {
			this._price = 0;
			this._months = 12;
			this._area = 0;
			this._localRate = 0.0;
			this._rentVat = 0;
			this._subletVat = 0;
		},
		amountWithoutFax: function() {
			return this._price / 1.05;
		},
		vat: function() {
			if (this.amountWithoutFax() <= 1800000) {
				return 0;
			} else {
				return this._price / 1.05 * 0.05;
			}
		},
		cbFax: function() {
			return this.vat() * 0.05 * 0.5;
		},
		edAFax: function() {
			if (this.amountWithoutFax() <= 1200000) {
				return 0;
			} else {
				return this.vat() * 0.03 * 0.5;
			}
		},
		ledAFax: function() {
			if (this.amountWithoutFax() <= 1200000) {
				return 0;
			} else {
				return this.vat() * 0.02 * 0.5;
			}
		},
		bFax: function() {
			if ((this._price - this.vat()) <= 360000) {
				return 0;
			} else {
				return (this._price - this.vat()) * 0.12 * 0.5;
			}
		},
		lAFax: function() {
			if ((this._price - this.vat()) <= 360000) {
				return 0;
			} else {
				return this._area * this._localRate * 0.5;
			}
		},
		stFax: function() {
			return this._price * 0.001 * 0.5;
		},
		deduAmount: function() {
			if (this._subletVat < 9600) {
				return this._subletVat;
			} else {
				return 9600;
			}
		},
		basTax: function() {
			let count = this._price - this.vat() 
					- this.cbFax() - this.edAFax() 
					- this.ledAFax() - this.bFax() 
					- this.lAFax() - this.stFax() 
					- this._rentVat - this.deduAmount();
					
			if (count <= 4000 && (count-800) > 0) {
				return count-800;
			} else if (count > 4000 && count * 0.8 > 0) {
				return count* 0.8;
			} else if (count <= 4000 && (count-800) <= 0) {
				return 0;
			} else if (count > 4000 && count*0.8 <= 0) {
				return 0;
			} else {
				return 0;
			}
		},
		iiTex: function() {
			return this.basTax() * 0.2;
		},
		allTaxAmount: function() {
			return this.vat()+this.cbFax()
				+this.edAFax()+this.ledAFax()
				+this.bFax()+this.lAFax()
				+this.stFax()+this.iiTex();
		},
		allRat: function() {
			return this.allTaxAmount() / this._price;
		},
		aledAmount: function() {
			return this._price - this.vat() - this.basTax();
		},
		allAmountNoSt: function() {
			return this.vat()+this.cbFax()
				+this.edAFax()+this.ledAFax()
				+this.bFax()+this.lAFax()+this.iiTex();
		}
	},

	12: {
		_price: 0,
		_months: 12,
		_area: 0,
		_localRate: 0.0,
		_rentVat: 0,
		_subletVat: 0,
		init: function(price, months, area, localRate, rentVat, subletVat) {
			this._price = price;
			this._months = months;
			this._area = area;
			this._localRate = localRate;
			this._rentVat = rentVat;
			this._subletVat = subletVat;
		},
		clear: function() {
			this._price = 0;
			this._months = 12;
			this._area = 0;
			this._localRate = 0.0;
			this._rentVat = 0;
			this._subletVat = 0;
		},
		amountWithoutFax: function() {
			return this._price / 1.05;
		},
		vat: function() {
			if (this.amountWithoutFax() <= 1800000) {
				return 0;
			} else {
				return this._price / 1.05 * 0.015;
			}
		},
		cbFax: function() {
			return this.vat() * 0.05 * 0.5;
		},
		edAFax: function() {
			if (this.amountWithoutFax() <= 1200000) {
				return 0;
			} else {
				return this.vat() * 0.03 * 0.5;
			}
		},
		ledAFax: function() {
			if (this.amountWithoutFax() <= 1200000) {
				return 0;
			} else {
				return this.vat() * 0.02 * 0.5;
			}
		},
		bFax: function() {
			if ((this._price - this.vat()) <= 360000) {
				return 0;
			} else {
				return (this._price - this.vat()) * 0.04 * 0.5;
			}
		},
		lAFax: function() {
			return 0;
		},
		stFax: function() {
			return 0;
		},
		deduAmount: function() {
			if (this._subletVat < 9600) {
				return this._subletVat;
			} else {
				return 9600;
			}
		},
		basTax: function() {
			let count = this._price - this.vat() 
					- this.cbFax() - this.edAFax() 
					- this.ledAFax() - this.bFax() 
					- this.lAFax() - this.stFax() 
					- this._rentVat - this.deduAmount();
					
			if (count <= 4000 && (count-800) > 0) {
				return count-800;
			} else if (count > 4000 && count * 0.8 > 0) {
				return count* 0.8;
			} else if (count <= 4000 && (count-800) <= 0) {
				return 0;
			} else if (count > 4000 && count*0.8 <= 0) {
				return 0;
			} else {
				return 0;
			}
		},
		iiTex: function() {
			return this.basTax() * 0.1;
		},
		allTaxAmount: function() {
			return this.vat()+this.cbFax()
				+this.edAFax()+this.ledAFax()
				+this.bFax()+this.lAFax()
				+this.stFax()+this.iiTex();
		},
		allRat: function() {
			return this.allTaxAmount() / this._price;
		},
		aledAmount: function() {
			return this._price - this.vat() - this.basTax();
		},
		allAmountNoSt: function() {
			return this.vat()+this.cbFax()
				+this.edAFax()+this.ledAFax()
				+this.bFax()+this.lAFax()+this.iiTex();
		}
	},

};

export default {
	countObject,
	countArray,
	localRateArray,
};